package com.qdxht.dispenser.ui.activity.test;

import androidx.annotation.Keep;

@Keep
public class PlayResourcesBean {
    private String url;
    private boolean isImg;
    private String title;
    private String id;  // 广告ID
    private Integer weight;
    private Integer showDuration;

    public PlayResourcesBean(String url, boolean isImg, String title) {
        this.url = url;
        this.isImg = isImg;
        this.title = title;
    }

    public PlayResourcesBean(String url, boolean isImg, Integer weight, Integer showDuration) {
        this.url = url;
        this.isImg = isImg;
        this.weight = weight;
        this.showDuration = showDuration;
    }
    
    public PlayResourcesBean(String url, boolean isImg, String id, Integer weight, Integer showDuration) {
        this.url = url;
        this.isImg = isImg;
        this.id = id;
        this.weight = weight;
        this.showDuration = showDuration;
    }

    public String getUrl() {
        return url != null ? url : "";
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isImg() {
        return isImg;
    }

    public void setImg(boolean img) {
        isImg = img;
    }

    public String getTitle() {
        return title != null ? title : "";
    }

    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getShowDuration() {
        return showDuration;
    }

    public void setShowDuration(Integer showDuration) {
        this.showDuration = showDuration;
    }
}